//默认分页样式
export const pagination = {
    current: 1, //当前页码
    total: 0, // 总条数
    pageSize: 10, //每页中显示10条数据
    showTotal: total => `共${total} 条数据`, //分页中显示总的数据
    showSizeChanger: true,
}
//数据字典主表表头
export const dictmainTable = [
    {
        title: '字典代码',
        dataIndex: 'code',
        width: 200,
    }, {
        title: '字典名称',
        dataIndex: 'name',
        width: 200,
    }, {
        title: '字典描述',
        dataIndex: 'description',
    }, {
        title: '状态',
        align: 'center',
        dataIndex: 'hasLock',
        width: 130,
        //插槽模式
        scopedSlots: {
            customRender: 'hasLock'
        }
    }, {
        title: '操作',
        width: 130,
        dataIndex: 'operation',
        scopedSlots: {
            customRender: 'operation'
        }
    }];
//数据字典明细表列设置
export const dictmxTable = [{
    title: '字典键名',
    dataIndex: 'label',
    width: 120,
    align: 'center',
    scopedSlots: {
        customRender: 'label'
    }
}, {
    title: '字典键值',
    dataIndex: 'value',
    width: 120,
    align: 'center'
}, {
    title: '字典排序',
    dataIndex: 'sort',
    align: 'center',
    width: 80
}, {
    title: '操作',
    dataIndex: 'operation',
    align: 'center',
    width: 120,
    scopedSlots: {
        customRender: 'operation'
    }
}];
//路由管理表头
export const menuTable = [{
    title: '',
    dataIndex: '',
    width: 80
},


    {
        title: '路由名称',
        dataIndex: 'name',
        align: 'left',
        width: 150,
        scopedSlots: {
            customRender: 'name'
        }

    },

    {
        title: '类型',
        width: 90,

        dataIndex: 'type',
        scopedSlots: {
            customRender: 'type'
        }
    },


    {
        title: '前端组件',
        dataIndex: 'component',
        ellipsis: true
    },
    {
        title: '权限标识',
        width: 170,
        ellipsis: true,
        dataIndex: 'permission',

    },


    {
        title: '访问路径',
        dataIndex: 'path',
        ellipsis: true,
        scopedSlots: {
            customRender: 'path'
        }
    },

    {
        title: '显示状态',
        width: 100,
        ellipsis: true,
        dataIndex: 'display',
        scopedSlots: {
            customRender: 'display'
        }
    },

    {
        title: '所属系统',
        width: 130,
        ellipsis: true,
        dataIndex: 'system',
        scopedSlots: {
            customRender: 'system'
        }
    },

    {
        title: '操作',
        dataIndex: 'operation',
        align: 'right',
        ellipsis: true,
        width: 170,
        fixed: 'right',
        scopedSlots: {
            customRender: 'operation'
        }
    }];

//系统日志表格表头
export const logTable = [
    {
    title: '模块',
    dataIndex: 'model',
    width: 140,
}, {
    title: '事件',
    dataIndex: 'event',
    width: 170,
},
    {
        title: '人员',
        dataIndex: 'operator',
        width: 110,
    },




    {
        title: '请求地址',
        dataIndex: 'requestUrl',

    },
    {
        title: '请求方式',
        dataIndex: 'requestMethod',
        width: 90,

    },

    {
        title: 'IP',
        dataIndex: 'ip',
        width: 120,
    },


    {
        title: '系统',
        dataIndex: 'os',
        width: 150,
    },
    {
        title: '操作时间',
        dataIndex: 'createTime',
        width: 170,
    },


    {
        title: '操作',
        dataIndex: 'operation',
        align: 'center',
        width: 80,
        scopedSlots: {
            customRender: 'operation'
        }
    },];

//错误码管理表头
export const errTable = [{
    title: '错误代码',
    dataIndex: 'code',
}, {
    title: '错误信息',
    dataIndex: 'message',
}, {
    title: '原因',
    dataIndex: 'reason',
}, {
    title: '解决方案',
    dataIndex: 'solution',
}, {
    title: '模块',
    dataIndex: 'module',
    scopedSlots: {
        customRender: 'module'
    }

}, {
    title: '操作',
    dataIndex: 'operation',
    align: 'center',
    width: 120,
    scopedSlots: {
        customRender: 'operation'
    }
},];
